﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
<body>
<form id="form1" runat="server">
<div id="container">
     <user:Header ID="header1" runat="server" />
  <div id="main">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
      
        <td align="center" class="main_nav">
          <div id="heading2"><asp:Label ID="lblHeading1" runat="server" CssClass="headingPart1"></asp:Label><asp:Label ID="lblHeading2" runat="server" CssClass="headingPart2"></asp:Label></div>
          <div id="main_text">
            <br />
            <h2>Login</h2>
                <table width="60%">
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Label ID="lblMsg" runat="server" Visible="False" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            </td>
                    </tr>
                    <tr>
                        <td width="30%">
                            <asp:Label ID="lblUserName" runat="server" Text="Username:" AssociatedControlID="txtUsername"></asp:Label></td>
                        <td>
                            <asp:TextBox ID="txtUsername" runat="server" MaxLength="60" CssClass="StandardTextBox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="30%">
                            </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvUsername" runat="server" 
                                ControlToValidate="txtUsername" Display="Dynamic" ErrorMessage="* Required" 
                                ValidationGroup="Login"></asp:RequiredFieldValidator>
                            <%--<asp:RegularExpressionValidator ID="revEmail" runat="server" 
                                ControlToValidate="txtUsername" Display="Dynamic" ErrorMessage="Invalid E-mail" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                ValidationGroup="Login"></asp:RegularExpressionValidator>--%>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Password:" AssociatedControlID="txtPassword"></asp:Label></td>
                        <td>
                            <asp:TextBox ID="txtPassword" runat="server" MaxLength="60" TextMode="Password" 
                                ValidationGroup="Login" CssClass="StandardTextBox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
                                ControlToValidate="txtPassword" Display="Dynamic" ErrorMessage="* Required" 
                                ValidationGroup="Login"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="~/images/login.jpg" 
                                ValidationGroup="Login" onclick="btnSubmit_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
          </div>
          
         
          </td>
      </tr>
    </table>
  </div>
  <user:Footer ID="footer1" runat="server" />
</div>
    </form>
</body>
</html>
